<form id="MapsForm" action="<?php echo site_url('Admin/add_location') ?>" method="post">

    <table class="table">
        <tr>
            <td width="23%">
                <label for="address">
                    <div class="input-group">
                        <span class="input-group-addon"><i class="fa fa-map-marker"></i></span>
                        <input type="text" class="form-control input-lg" name="location_name" id="address" placeholder="New Location" required="required"/>
                    </div>
                </label>
            </td>
            <td width="15%">
                <a href="#" id="GetMaps" class="btn btn-lg btn-primary">Generate Map</a>
            </td>
            <td width="20%">
                <button name="btn_add_loc" value="add" type="submit" href="#" class="btn btn-lg btn-success"><i class="fa fa-plus-square"></i> Add This Location</button>
            </td>
            <td width="13%">
                <a href="#" class="btn btn-lg btn-danger" id="Reset">Reset Map</a>
            </td>
            <td>
                <select class="form-control input-lg">
                    <option value="" selected="selected">Existing Location</option>
                    <?php foreach ($location as $data) { ?>
                        <option><?php echo $data['location_name'] ?></option>
                    <?php } ?>
                </select>
            </td>
        </tr>
    </table>


    <fieldset class="fisarmonica">
        <div class="input_dinamici">	
            <table class="table">
                <tr>
                    <td>Nation</td>
                    <td>
                        <label for="nation"><input class="form-control input-sm" type="text" name="nation" id="nation" required="required"/></label>
                    </td>
                    <td>Province</td>
                    <td>
                        <label for="prov"><input class="form-control input-sm" type="text" name="prov" id="prov"/></label>
                    </td>
                    <td>Latitude</td>
                    <td>
                        <label for="latitude"><input class="form-control input-sm" type="text" name="latitude" id="latitude" required="required"/></label>
                    </td>
                    <td>Longitude</td>
                    <td>
                        <label for="longitude"><input class="form-control input-sm" type="text" name="longitude" id="longitude" required="required"/></label>
                    </td>
                </tr>
            </table>
        </div>

        <div id="maps"></div>

    </fieldset>

</form>	